package com.isnotlocus.gulimail.member;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;


/***
 * @EnableDiscoveryClient是允许服务发现也就是允许注册到服务中去
 * 1.想要远程调用别的服务
 *  1）引入openfeign
 *  2) 编写一个接口，告诉springcloud这个接口需要调用远程服务
 *     1.声明接口中的每一个方法都是调用远程接口的哪一个方法
 *  3) 开启远程调用功能  @EnableFeignClients("com.isnotlocus.gulimail.member.feign") 就是上面service所在的包
 *  */
@EnableFeignClients("com.isnotlocus.gulimail.member.feign")
@EnableDiscoveryClient
@SpringBootApplication
public class GulimailMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimailMemberApplication.class, args);
    }

}
